
#ifndef SHOGISTATETRACKERS_H_INCLUDED
#define SHOGISTATETRACKERS_H_INCLUDED

#include <QString>
#include <QMap>

class StateTracker
{
public:
	bool checkFlag(const char* flag) const  
	{ 
		bool state = false;
		QString f(flag);

		if (m_internal.contains(f)) 
		{ 
			state = m_internal[f];			
		} 
		
		return state;
		 
	}

	void setFlag(const char* flag, bool state) 
	{ 
		m_internal[QString(flag)] = state; 
	}

protected:
	StateTracker() {}
	QMap<QString,bool> m_internal;
};



#endif // SHOGISTATETRACKERS_H_INCLUDED

